﻿using Furion.Localization;
using ST.Torch.WebApi.Application.System.Dtos;
using ST.Torch.WebApi.Core.Entities.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace ST.Torch.WebApi.Application.System.Services
{
    public interface  IUIDService
    {
        public string languageCulture { get;}
       
        public Guid UserId { get; }


        /// <summary>
        /// 用户
        /// </summary>
        public SYSUser User { get; }


        /// <summary>
        /// 用户
        /// </summary>
        public SYSUserInfoDto UserInfo { get; }

        public bool IsExisePermissionId(string key);
        /// <summary>
        /// 清除缓存
        /// </summary>
        /// <returns></returns>
        public Task CleanAllCache();
        /// <summary>
        /// 清除缓存
        /// </summary>
        /// <returns></returns>
        public Task CleanCache();
        /// <summary>
        /// 清除缓存
        /// </summary>
        /// <returns></returns>
        public Task CleanCacheById(Guid userId);

    }
}
